package com.zshan.clinic.database.model;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 门诊随访记录表
 */
public class ClinicFollowup implements Serializable {
    /** 随访ID */
    private Long followupId;

    /** 病历ID */
    private Long medicalId;

    /** 诊号;唯一诊号 */
    private String visitNo;

    /** 就诊日期;2025-07-09 */
    private LocalDate visitDate;

    /** 医生ID */
    private Long doctorId;

    /** 医生名 */
    private String doctorName;

    /** 患者ID */
    private Long patientId;

    /** 患者名 */
    private String patientName;

    /** 患者性别;1男生2女生3未知 */
    private String patientGender;

    /** 患者电话 */
    private String patientPhone;

    /** 身份证号 */
    private String idCard;

    /** 病人主诉 */
    private String complaint;

    /** 最后诊断 */
    private String diagnosis;

    /** 诊断时间 */
    private Date diagnosisTime;

    /** 随访渠道;电话、线下 */
    private String followupChannel;

    /** 随访日期 */
    private LocalDate followupDate;

    /** 随访结果 */
    private String followupResult;

    /** 随访附件 */
    private String attachmentUrls;

    /** 随访人ID */
    private Long followupEmpId;

    /** 随访人姓名 */
    private String followupEmpName;

    /** 实际的随访日期 */
    private LocalDate realFollowupDate;

    /** 随访状态 */
    private String followupStatus;

    /** 操作人ID */
    private Long operatorUserId;

    /** 操作人 */
    private String operatorBy;

    /** 操作时间 */
    private Date operateTime;

    /** 诊所ID */
    private Long clinicId;

    /** 启用状态;启用状态 */
    private String isEnabled;

    /** 删除标识 */
    private String isDelete;

    /** 创建人ID */
    private Long createUserId;

    /** 创建人 */
    private String createBy;

    /** 创建时间 */
    private Date createTime;

    /** 更新人ID */
    private Long updateUserId;

    /** 更新人 */
    private String updateBy;

    /** 更新时间 */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getFollowupId() {
        return followupId;
    }

    public void setFollowupId(Long followupId) {
        this.followupId = followupId;
    }

    public Long getMedicalId() {
        return medicalId;
    }

    public void setMedicalId(Long medicalId) {
        this.medicalId = medicalId;
    }

    public String getVisitNo() {
        return visitNo;
    }

    public void setVisitNo(String visitNo) {
        this.visitNo = visitNo == null ? null : visitNo.trim();
    }

    public LocalDate getVisitDate() {
        return visitDate;
    }

    public void setVisitDate(LocalDate visitDate) {
        this.visitDate = visitDate;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public String getDoctorName() {
        return doctorName;
    }

    public void setDoctorName(String doctorName) {
        this.doctorName = doctorName == null ? null : doctorName.trim();
    }

    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public String getPatientName() {
        return patientName;
    }

    public void setPatientName(String patientName) {
        this.patientName = patientName == null ? null : patientName.trim();
    }

    public String getPatientGender() {
        return patientGender;
    }

    public void setPatientGender(String patientGender) {
        this.patientGender = patientGender == null ? null : patientGender.trim();
    }

    public String getPatientPhone() {
        return patientPhone;
    }

    public void setPatientPhone(String patientPhone) {
        this.patientPhone = patientPhone == null ? null : patientPhone.trim();
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard == null ? null : idCard.trim();
    }

    public String getComplaint() {
        return complaint;
    }

    public void setComplaint(String complaint) {
        this.complaint = complaint == null ? null : complaint.trim();
    }

    public String getDiagnosis() {
        return diagnosis;
    }

    public void setDiagnosis(String diagnosis) {
        this.diagnosis = diagnosis == null ? null : diagnosis.trim();
    }

    public Date getDiagnosisTime() {
        return diagnosisTime;
    }

    public void setDiagnosisTime(Date diagnosisTime) {
        this.diagnosisTime = diagnosisTime;
    }

    public String getFollowupChannel() {
        return followupChannel;
    }

    public void setFollowupChannel(String followupChannel) {
        this.followupChannel = followupChannel == null ? null : followupChannel.trim();
    }

    public LocalDate getFollowupDate() {
        return followupDate;
    }

    public void setFollowupDate(LocalDate followupDate) {
        this.followupDate = followupDate;
    }

    public String getFollowupResult() {
        return followupResult;
    }

    public void setFollowupResult(String followupResult) {
        this.followupResult = followupResult == null ? null : followupResult.trim();
    }

    public String getAttachmentUrls() {
        return attachmentUrls;
    }

    public void setAttachmentUrls(String attachmentUrls) {
        this.attachmentUrls = attachmentUrls == null ? null : attachmentUrls.trim();
    }

    public Long getFollowupEmpId() {
        return followupEmpId;
    }

    public void setFollowupEmpId(Long followupEmpId) {
        this.followupEmpId = followupEmpId;
    }

    public String getFollowupEmpName() {
        return followupEmpName;
    }

    public void setFollowupEmpName(String followupEmpName) {
        this.followupEmpName = followupEmpName == null ? null : followupEmpName.trim();
    }

    public LocalDate getRealFollowupDate() {
        return realFollowupDate;
    }

    public void setRealFollowupDate(LocalDate realFollowupDate) {
        this.realFollowupDate = realFollowupDate;
    }

    public String getFollowupStatus() {
        return followupStatus;
    }

    public void setFollowupStatus(String followupStatus) {
        this.followupStatus = followupStatus == null ? null : followupStatus.trim();
    }

    public Long getOperatorUserId() {
        return operatorUserId;
    }

    public void setOperatorUserId(Long operatorUserId) {
        this.operatorUserId = operatorUserId;
    }

    public String getOperatorBy() {
        return operatorBy;
    }

    public void setOperatorBy(String operatorBy) {
        this.operatorBy = operatorBy == null ? null : operatorBy.trim();
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public Long getClinicId() {
        return clinicId;
    }

    public void setClinicId(Long clinicId) {
        this.clinicId = clinicId;
    }

    public String getIsEnabled() {
        return isEnabled;
    }

    public void setIsEnabled(String isEnabled) {
        this.isEnabled = isEnabled == null ? null : isEnabled.trim();
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    public Long getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Long createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Long updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ClinicFollowup other = (ClinicFollowup) that;
        return (this.getFollowupId() == null ? other.getFollowupId() == null : this.getFollowupId().equals(other.getFollowupId()))
            && (this.getMedicalId() == null ? other.getMedicalId() == null : this.getMedicalId().equals(other.getMedicalId()))
            && (this.getVisitNo() == null ? other.getVisitNo() == null : this.getVisitNo().equals(other.getVisitNo()))
            && (this.getVisitDate() == null ? other.getVisitDate() == null : this.getVisitDate().equals(other.getVisitDate()))
            && (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getDoctorName() == null ? other.getDoctorName() == null : this.getDoctorName().equals(other.getDoctorName()))
            && (this.getPatientId() == null ? other.getPatientId() == null : this.getPatientId().equals(other.getPatientId()))
            && (this.getPatientName() == null ? other.getPatientName() == null : this.getPatientName().equals(other.getPatientName()))
            && (this.getPatientGender() == null ? other.getPatientGender() == null : this.getPatientGender().equals(other.getPatientGender()))
            && (this.getPatientPhone() == null ? other.getPatientPhone() == null : this.getPatientPhone().equals(other.getPatientPhone()))
            && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()))
            && (this.getComplaint() == null ? other.getComplaint() == null : this.getComplaint().equals(other.getComplaint()))
            && (this.getDiagnosis() == null ? other.getDiagnosis() == null : this.getDiagnosis().equals(other.getDiagnosis()))
            && (this.getDiagnosisTime() == null ? other.getDiagnosisTime() == null : this.getDiagnosisTime().equals(other.getDiagnosisTime()))
            && (this.getFollowupChannel() == null ? other.getFollowupChannel() == null : this.getFollowupChannel().equals(other.getFollowupChannel()))
            && (this.getFollowupDate() == null ? other.getFollowupDate() == null : this.getFollowupDate().equals(other.getFollowupDate()))
            && (this.getFollowupResult() == null ? other.getFollowupResult() == null : this.getFollowupResult().equals(other.getFollowupResult()))
            && (this.getAttachmentUrls() == null ? other.getAttachmentUrls() == null : this.getAttachmentUrls().equals(other.getAttachmentUrls()))
            && (this.getFollowupEmpId() == null ? other.getFollowupEmpId() == null : this.getFollowupEmpId().equals(other.getFollowupEmpId()))
            && (this.getFollowupEmpName() == null ? other.getFollowupEmpName() == null : this.getFollowupEmpName().equals(other.getFollowupEmpName()))
            && (this.getRealFollowupDate() == null ? other.getRealFollowupDate() == null : this.getRealFollowupDate().equals(other.getRealFollowupDate()))
            && (this.getFollowupStatus() == null ? other.getFollowupStatus() == null : this.getFollowupStatus().equals(other.getFollowupStatus()))
            && (this.getOperatorUserId() == null ? other.getOperatorUserId() == null : this.getOperatorUserId().equals(other.getOperatorUserId()))
            && (this.getOperatorBy() == null ? other.getOperatorBy() == null : this.getOperatorBy().equals(other.getOperatorBy()))
            && (this.getOperateTime() == null ? other.getOperateTime() == null : this.getOperateTime().equals(other.getOperateTime()))
            && (this.getClinicId() == null ? other.getClinicId() == null : this.getClinicId().equals(other.getClinicId()))
            && (this.getIsEnabled() == null ? other.getIsEnabled() == null : this.getIsEnabled().equals(other.getIsEnabled()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()))
            && (this.getCreateUserId() == null ? other.getCreateUserId() == null : this.getCreateUserId().equals(other.getCreateUserId()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUserId() == null ? other.getUpdateUserId() == null : this.getUpdateUserId().equals(other.getUpdateUserId()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFollowupId() == null) ? 0 : getFollowupId().hashCode());
        result = prime * result + ((getMedicalId() == null) ? 0 : getMedicalId().hashCode());
        result = prime * result + ((getVisitNo() == null) ? 0 : getVisitNo().hashCode());
        result = prime * result + ((getVisitDate() == null) ? 0 : getVisitDate().hashCode());
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getDoctorName() == null) ? 0 : getDoctorName().hashCode());
        result = prime * result + ((getPatientId() == null) ? 0 : getPatientId().hashCode());
        result = prime * result + ((getPatientName() == null) ? 0 : getPatientName().hashCode());
        result = prime * result + ((getPatientGender() == null) ? 0 : getPatientGender().hashCode());
        result = prime * result + ((getPatientPhone() == null) ? 0 : getPatientPhone().hashCode());
        result = prime * result + ((getIdCard() == null) ? 0 : getIdCard().hashCode());
        result = prime * result + ((getComplaint() == null) ? 0 : getComplaint().hashCode());
        result = prime * result + ((getDiagnosis() == null) ? 0 : getDiagnosis().hashCode());
        result = prime * result + ((getDiagnosisTime() == null) ? 0 : getDiagnosisTime().hashCode());
        result = prime * result + ((getFollowupChannel() == null) ? 0 : getFollowupChannel().hashCode());
        result = prime * result + ((getFollowupDate() == null) ? 0 : getFollowupDate().hashCode());
        result = prime * result + ((getFollowupResult() == null) ? 0 : getFollowupResult().hashCode());
        result = prime * result + ((getAttachmentUrls() == null) ? 0 : getAttachmentUrls().hashCode());
        result = prime * result + ((getFollowupEmpId() == null) ? 0 : getFollowupEmpId().hashCode());
        result = prime * result + ((getFollowupEmpName() == null) ? 0 : getFollowupEmpName().hashCode());
        result = prime * result + ((getRealFollowupDate() == null) ? 0 : getRealFollowupDate().hashCode());
        result = prime * result + ((getFollowupStatus() == null) ? 0 : getFollowupStatus().hashCode());
        result = prime * result + ((getOperatorUserId() == null) ? 0 : getOperatorUserId().hashCode());
        result = prime * result + ((getOperatorBy() == null) ? 0 : getOperatorBy().hashCode());
        result = prime * result + ((getOperateTime() == null) ? 0 : getOperateTime().hashCode());
        result = prime * result + ((getClinicId() == null) ? 0 : getClinicId().hashCode());
        result = prime * result + ((getIsEnabled() == null) ? 0 : getIsEnabled().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        result = prime * result + ((getCreateUserId() == null) ? 0 : getCreateUserId().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUserId() == null) ? 0 : getUpdateUserId().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", followupId=").append(followupId);
        sb.append(", medicalId=").append(medicalId);
        sb.append(", visitNo=").append(visitNo);
        sb.append(", visitDate=").append(visitDate);
        sb.append(", doctorId=").append(doctorId);
        sb.append(", doctorName=").append(doctorName);
        sb.append(", patientId=").append(patientId);
        sb.append(", patientName=").append(patientName);
        sb.append(", patientGender=").append(patientGender);
        sb.append(", patientPhone=").append(patientPhone);
        sb.append(", idCard=").append(idCard);
        sb.append(", complaint=").append(complaint);
        sb.append(", diagnosis=").append(diagnosis);
        sb.append(", diagnosisTime=").append(diagnosisTime);
        sb.append(", followupChannel=").append(followupChannel);
        sb.append(", followupDate=").append(followupDate);
        sb.append(", followupResult=").append(followupResult);
        sb.append(", attachmentUrls=").append(attachmentUrls);
        sb.append(", followupEmpId=").append(followupEmpId);
        sb.append(", followupEmpName=").append(followupEmpName);
        sb.append(", realFollowupDate=").append(realFollowupDate);
        sb.append(", followupStatus=").append(followupStatus);
        sb.append(", operatorUserId=").append(operatorUserId);
        sb.append(", operatorBy=").append(operatorBy);
        sb.append(", operateTime=").append(operateTime);
        sb.append(", clinicId=").append(clinicId);
        sb.append(", isEnabled=").append(isEnabled);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", createUserId=").append(createUserId);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUserId=").append(updateUserId);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}